<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>统计 - 日记小程序</title>
    <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.4.0/css/all.min.css">
    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
            font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, 'Open Sans', 'Helvetica Neue', sans-serif;
        }
        body {
            background-color: #f7f7f7;
            color: #333;
            padding-bottom: 60px;
        }
        .header {
            background-color: #42b983;
            color: white;
            padding: 15px;
            text-align: center;
            position: relative;
        }
        .time-selector {
            display: flex;
            margin: 15px;
            background-color: #f0f0f0;
            border-radius: 8px;
            padding: 3px;
        }
        .time-option {
            flex: 1;
            text-align: center;
            padding: 8px 0;
            font-size: 14px;
            color: #666;
            border-radius: 5px;
        }
        .time-option.active {
            background-color: white;
            color: #42b983;
            font-weight: bold;
            box-shadow: 0 1px 3px rgba(0,0,0,0.1);
        }
        .summary-card {
            background-color: white;
            border-radius: 8px;
            margin: 15px;
            padding: 15px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .summary-title {
            font-size: 16px;
            font-weight: bold;
            margin-bottom: 15px;
            color: #333;
        }
        .summary-content {
            display: flex;
            justify-content: space-between;
        }
        .summary-item {
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .summary-value {
            font-size: 20px;
            font-weight: bold;
            color: #42b983;
            margin-bottom: 5px;
        }
        .summary-label {
            font-size: 12px;
            color: #999;
        }
        .mood-chart {
            background-color: white;
            border-radius: 8px;
            margin: 15px;
            padding: 15px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .chart {
            width: 100%;
            height: 200px;
            display: flex;
            align-items: flex-end;
            justify-content: space-around;
            margin: 20px 0;
        }
        .chart-bar {
            width: 30px;
            background-color: #e1f5ea;
            border-radius: 3px 3px 0 0;
            position: relative;
            display: flex;
            flex-direction: column;
            align-items: center;
        }
        .chart-label {
            position: absolute;
            bottom: -20px;
            font-size: 12px;
            color: #999;
        }
        .chart-value {
            position: absolute;
            top: -20px;
            font-size: 12px;
            color: #42b983;
        }
        .memory-card {
            background-color: white;
            border-radius: 8px;
            margin: 15px;
            padding: 15px;
            box-shadow: 0 2px 5px rgba(0,0,0,0.1);
        }
        .memory-list {
            margin-top: 15px;
        }
        .memory-item {
            margin-bottom: 15px;
            padding-bottom: 15px;
            border-bottom: 1px solid #eee;
        }
        .memory-date {
            font-size: 12px;
            color: #999;
            margin-bottom: 5px;
        }
        .memory-content {
            font-size: 14px;
            line-height: 1.5;
            color: #666;
        }
        .tabbar {
            position: fixed;
            bottom: 0;
            width: 100%;
            height: 50px;
            background-color: white;
            display: flex;
            border-top: 1px solid #eee;
        }
        .tab-item {
            flex: 1;
            display: flex;
            flex-direction: column;
            align-items: center;
            justify-content: center;
            font-size: 10px;
            color: #999;
        }
        .tab-item.active {
            color: #42b983;
        }
        .tab-item i {
            font-size: 20px;
            margin-bottom: 3px;
        }
    </style>
</head>
<body>
    <div class="header">
        <h1>统计分析</h1>
    </div>

    <div class="time-selector">
        <div class="time-option">周</div>
        <div class="time-option active">月</div>
        <div class="time-option">年</div>
        <div class="time-option">全部</div>
    </div>

    <div class="summary-card">
        <div class="summary-title">本月概览</div>
        <div class="summary-content">
            <div class="summary-item">
                <div class="summary-value">18</div>
                <div class="summary-label">记录天数</div>
            </div>
            <div class="summary-item">
                <div class="summary-value">10</div>
                <div class="summary-label">开心天数</div>
            </div>
            <div class="summary-item">
                <div class="summary-value">5</div>
                <div class="summary-label">平静天数</div>
            </div>
            <div class="summary-item">
                <div class="summary-value">3</div>
                <div class="summary-label">其他心情</div>
            </div>
        </div>
    </div>

    <div class="mood-chart">
        <div class="summary-title">心情分布</div>
        <div class="chart">
            <div class="chart-bar" style="height: 150px;">
                <div class="chart-value">10</div>
                <div class="chart-label">开心</div>
            </div>
            <div class="chart-bar" style="height: 70px;">
                <div class="chart-value">5</div>
                <div class="chart-label">平静</div>
            </div>
            <div class="chart-bar" style="height: 40px;">
                <div class="chart-value">2</div>
                <div class="chart-label">伤心</div>
            </div>
            <div class="chart-bar" style="height: 20px;">
                <div class="chart-value">1</div>
                <div class="chart-label">生气</div>
            </div>
            <div class="chart-bar" style="height: 0px;">
                <div class="chart-value">0</div>
                <div class="chart-label">惊讶</div>
            </div>
        </div>
    </div>

    <div class="memory-card">
        <div class="summary-title">本月回忆</div>
        <div class="memory-list">
            <div class="memory-item">
                <div class="memory-date">2023年4月18日 星期二</div>
                <div class="memory-content">今天是美好的一天，早上去公园跑步，遇到了许多可爱的小狗。</div>
            </div>
            <div class="memory-item">
                <div class="memory-date">2023年4月13日 星期四</div>
                <div class="memory-content">下午完成了一个重要项目，老板很满意，还表扬了我。</div>
            </div>
            <div class="memory-item">
                <div class="memory-date">2023年4月7日 星期五</div>
                <div class="memory-content">周五晚上和朋友一起去看了电影，很放松的一晚上。</div>
            </div>
        </div>
    </div>

    <div class="tabbar">
        <div class="tab-item">
            <i class="fas fa-book"></i>
            <span>日记</span>
        </div>
        <div class="tab-item">
            <i class="fas fa-calendar-alt"></i>
            <span>日历</span>
        </div>
        <div class="tab-item active">
            <i class="fas fa-chart-line"></i>
            <span>统计</span>
        </div>
        <div class="tab-item">
            <i class="fas fa-user"></i>
            <span>我的</span>
        </div>
    </div>
</body>
</html> 